package com.lezhi.socialgram.service.lbs;

import com.lezhi.socialgram.model.lbs.LbsCondition;
import com.lezhi.socialgram.dto.UserNearly;
import com.lezhi.socialgram.model.sys.SignUpUser;
import com.lezhi.socialgram.model.sys.TelNumSignInUser;
import com.lezhi.socialgram.util.Result;
import org.elasticsearch.action.update.UpdateResponse;
import org.springframework.data.elasticsearch.core.geo.GeoPoint;

import java.util.List;

/**
 * Created by daizhen on 2017/3/27.
 */
public interface LbsService {
    List<UserNearly> queryPersonNearlyByLatLon(Double latitude, Double longitude, Integer sex);

    Result queryPersonNearlyByUserId(LbsCondition condition);

    String indexUser(SignUpUser signUpUser);

    String indexUser(TelNumSignInUser signInUser);

    UpdateResponse updateUserLocation(Long userId, GeoPoint geoPoint);
}
